<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <include file="Public/meta" />
    <link rel="stylesheet" href="__ADMIN_JS__/iCheck-1.0.2/skins/all.css">
    <style type="text/css">
        .nav>li>a {
            padding: 0px;
            height: 40px;
            line-height: 40px;
        }
        .nav>li {
            width: 100px;
        }
        .navs{
            margin-top: 30px;
        }
        .file-box{  
            display: inline-block;  
            position: relative;  
            padding:8px;  
            overflow: hidden;  
            color:#fff;  
            background-color: #337ab7;  
            text-align: center;
            outline: none;
            border-radius: 3px;
        }  
        .file-btn{  
            position: absolute;  
            width: 100%;  
            height: 100%;  
            top: 0;  
            left: 0;  
            outline: none;  
            background-color: #337ab7;  
            filter:alpha(opacity=0);  
            -moz-opacity:0;  
            -khtml-opacity: 0;  
            opacity: 0;  
            text-align: center;
        }  
    </style>
</head>
<body>
    <div class="info-center">
        <div class="page-header">
            <div class="pull-left">
                <h4>系统设置</h4>     
                <div>
                <ul class="nav nav-pills nav-justified navs">
                    <li role="presentation" class="active"><a href="{:U('config/index')}">系统信息</a></li>
                    <li role="presentation"><a href="{:U('config/aliyun')}">阿里云设置</a></li>
                    <li role="presentation"><a href="{:U('config/weixin')}">微信设置</a></li>
                    <li role="presentation"><a href="{:U('config/alipay')}">支付宝设置</a></li>
                </ul>
                </div>
               <!--  <a href="javascript:history.go(-1)">
                    <button class="btn btn-default"><i class="fa fa-level-up"></i>返回</button>
                </a>  -->
            </div>
        </div>
        <div class="clearfix"></div>
        <div class="table-margin">
            <form action="{:U('config/index')}" class="form-horizontal" method="post"  enctype="multipart/form-data">
                <table class="table table-hover contact-template-form">
                    <tbody>
                        <tr>
                            <td width="20%" align="right">网站名称：</td>
                            <td>
                                <input class="form-control w-300" type="text" name="sitename" value="{$info.sitename}">
                            </td>
                        </tr>
                        <tr>
                            <td width="20%" align="right">网站备案号：</td>
                            <td>
                                <input class="form-control w-300" type="text" name="recode" value="{$info.recode}">
                            </td>
                        </tr>
                        <tr>
                            <td width="20%" align="right">网站logo：</td>
                            <td>
                                <div class="file-box">  
                                        <input type="file" class="file-btn" name="logo"/>  
                                        上传图片  
                                </div> 
                            </td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>      
                                <img src="../../../uploads/{$info.logo}" style="width: 80px;">
                            </td>
                        </tr>
                        <tr>
                            <td width="20%" align="right">网站标题：</td>
                            <td>
                                <input class="form-control w-300" type="text" name="title" value="{$info.title}">
                            </td>
                        </tr>
                        <tr>
                            <td width="20%" align="right">网站描述：</td>
                            <td>
                                <textarea  class="form-control"  name="desc" rows="5">{$info.desc}</textarea>
                            </td>
                        </tr>
                        <tr>
                            <td width="20%" align="right">联系人：</td>
                            <td>
                                <input class="form-control w-300" type="text" name="people" value="{$info['people']}">
                            </td>
                        </tr>
                        <tr>
                            <td width="20%" align="right">联系手机：</td>
                            <td>
                                <input class="form-control w-300" type="text" name="phone" value="{$info.phone}">
                            </td>
                        </tr>
                        <tr>
                            <td width="20%" align="right">平台客服QQ1：</td>
                            <td>
                                <input class="form-control w-300" type="text" name="qq1" value="{$info.qq1}">
                            </td>
                        </tr>
                        <tr>
                            <td width="20%" align="right">平台客服QQ2：</td>
                            <td>
                                <input class="form-control w-300" type="text" name="qq2" value="{$info.qq2}">
                            </td>
                        </tr>
                        <tr>
                            <td width="20%" align="right">平台客服QQ3：</td>
                            <td>
                                <input class="form-control w-300" type="text" name="qq3" value="{$info.qq3}">
                            </td>
                        </tr>
                        <tr>
                            <td width="20%" align="right">网站状态：</td>
                            <td>
                                <label><span class="inputword">开启</span> <input checked="checked" class="xb-icheck" type="radio" name="state" value="1" <eq name="info['state']" value="1"> checked="checked"</eq> ></label> &emsp; <label><span class="inputword">关闭</span> <input class="xb-icheck" type="radio" name="state" value="0" <eq name="info['state']" value="0"> checked="checked"</eq> ></label>
                            </td>
                        </tr>
                        <tr>
                            <tD></td>
                            <td>
                                <input class="btn btn-primary" type="submit" value="确定">
                            </td>
                        </tr>
                    </tbody>
                </table>    
            </form>
        </div>
    </div>  
    <script type="text/javascript" src="__ADMIN_JS__/common.js"></script>
    <script type="text/javascript" src="__ADMIN_JS__/iCheck-1.0.2/icheck.js"></script>
    <script type="text/javascript">

    $(document).ready(function(){
        $('.xb-icheck').iCheck({
            checkboxClass: "icheckbox_minimal-blue",
            radioClass: "iradio_minimal-blue",
            increaseArea: "20%"
        });
    });
    </script>
</body>
</html>
